package com.hdoit.kylin.logical.document.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.document.dao.IWeekLogDao;
import com.hdoit.kylin.logical.document.model.WeekLog;
import com.hdoit.kylin.logical.document.service.IWeekLogService;
import com.hdoit.kylin.logical.viewmodel.document.WeekLogSearch;
/**
 * @author      lufu
 * @email       
 * @createtime  2017年08月10日 14:47:16
 * @comment
 */
@Component
public class WeekLogServiceImpl extends SuperService<WeekLog> implements IWeekLogService{
	
	private IWeekLogDao weekLogDao;

	public IWeekLogDao getWeekLogDao() {
		return weekLogDao;
	}

	@Resource
	public void setWeekLogDao(IWeekLogDao weekLogDao) {
		this.weekLogDao = weekLogDao;
	}

	@Override
	public List<WeekLog> queryList(WeekLogSearch weekLogSearch,PagerModel pagerModel) {
		return weekLogDao.queryList(weekLogSearch, pagerModel);
	}

	@Override
	public List<WeekLog> queryList(WeekLogSearch weekLogSearch) {
		return weekLogDao.queryList(weekLogSearch);
	}

	@Override
	public int queryCount(WeekLogSearch weekLogSearch) {
		return weekLogDao.queryCount(weekLogSearch);
	}

	@Override
	public List<WeekLog> queryListByTeacherId(String teacherId) {
		
		return weekLogDao.queryListByTeacherId(teacherId);
	}

	@Override
	public List<WeekLog> queryListByEmployeeId(String employeeId) {
		
		return weekLogDao.queryListByEmployeeId(employeeId);
	}

}